// Panel 面板组件样式
.ms-panel {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  overflow: hidden;
  
  &--bordered {
    border: 1px solid #e8e8e8;
  }
  
  &--no-border {
    border: none;
  }
}

.ms-panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #fafafa;
  border-bottom: 1px solid #e8e8e8;
  min-height: 48px;
  
  &--reverse {
    flex-direction: row-reverse;
    
    .ms-panel-title__left {
      text-align: right;
    }
    
    .ms-panel-title__right {
      text-align: left;
    }
  }
  
  &__left {
    flex: 1;
    display: flex;
    align-items: center;
  }
  
  &__text {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    line-height: 1.4;
  }
  
  &__right {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    margin-left: 12px;
  }
}

.ms-panel-content {
  padding: 16px;
  background: #fff;
  
  // 当Panel没有边框时，内容区域也需要调整
  .ms-panel--no-border & {
    padding-top: 0;
  }
}

// 当Panel没有边框时，标题区域也需要调整
.ms-panel--no-border .ms-panel-title {
  border-bottom: none;
  padding-bottom: 8px;
}

// 响应式设计
@media (max-width: 768px) {
  .ms-panel-title {
    padding: 8px 12px;
    min-height: 40px;
    
    &__text {
      font-size: 13px;
    }
  }
  
  .ms-panel-content {
    padding: 12px;
  }
}
